import { defineStore } from 'pinia'
// import type{ IAccount } from '@/Types/types'hi

export const useSearchStore = defineStore ('search',{
  state(){
    return{
      historyList:[],
      showSearch:false,
      searchData:''
    }
  },
  actions:{
    // addSearchList(some){
    //     this.historyList.push(some)
    // },
    // clearSearchList(){
    //     this.historyList = []
    // }
  },
  getters:{

  },
  persist: {
    enabled: true,
    strategies: [
        {
            key: 'search',
            storage: localStorage,
        },
    ],
},
})